<?php
$debug = 1;
if($debug){
	error_reporting(E_ALL);
	ini_set('display_errors', '1');
}
require_once("../db.class.php");
$db = DB::getInstance();

echo "<b>Basic Query Result:</b><br>";
//Run a basic query;
$query = "SELECT * FROM tblUsers LIMIT 1";
$result = $db->qry($query);
$array = mysqli_fetch_assoc($result);
$db->printArray($array);

echo "<br><br><b>Clean mySQL Param Result</b><br>";
//clean a single parameter
$param = "mysql injected 'string";
$param = $db->cleanParam($param);
echo $param;

echo "<br><br><b>Clean mySQL List of Paramaters Result</b><br>";
//clean a list of parameters
$paramList = array("value1"=>"value1","value2name"=>"value2","value3"=>"value;'abc!@#$%^&*();/.<");
$paramList = $db->cleanParamList($paramList);
$db->printArray($paramList);





?>